package com.daoeping.action;

import com.daoeping.domain.Cop_companyinfo;
import com.daoeping.domain.JsonData;
import com.daoeping.service.CompanyinfoService;
import com.opensymphony.xwork2.ActionSupport;

public class CompanyinfoAction extends ActionSupport{
	
	private static final long serialVersionUID = -1691846679751724506L;
	private  CompanyinfoService companyinfoService;
	private Cop_companyinfo cop_companyinfo;
	
	
	public Cop_companyinfo getCop_companyinfo() {
		return cop_companyinfo;
	}

	public void setCop_companyinfo(Cop_companyinfo cop_companyinfo) {
		this.cop_companyinfo = cop_companyinfo;
	}
	private JsonData jsonData;
	
	
	public JsonData getJsonData() {
		return jsonData;
	}

	public void setJsonData(JsonData jsonData) {
		this.jsonData = jsonData;
	}

	public CompanyinfoService getCompanyinfoService() {
		return companyinfoService;
	}

	public void setCompanyinfoService(CompanyinfoService companyinfoService) {
		this.companyinfoService = companyinfoService;
	}

	public String findAllCompanyinfo(){
		jsonData = new JsonData();
		companyinfoService.findCop_companyinfosJson(null);
		return "allcompanyinfo";
		
	}
	public String findCompanyinfoById(){
		jsonData = new JsonData();
		companyinfoService.findCop_companyinfosJson(cop_companyinfo);
		return "companyinfobyid";
		
	}
	
}
